Skip to content

Announce marker contents via aria.alert in goto-error peek widget#316835

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-accessibility-error-message-issues
Draft

Announce marker contents via aria.alert in goto-error peek widget#316835
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-accessibility-error-message-issues

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 17, 2026

Screen readers (Narrator in particular) did not announce the problem text when the inline marker peek widget is opened with F8. The widget's aria-live region was present but unreliable, and its aria-label omitted the actual message — only severity, position, and the underlying line content were exposed.

Changes

  • gotoErrorWidget.tsMessageWidget.update(): explicitly call aria.alert(...) whenever the widget is shown at a marker or the marker changes, forcing a Narrator announcement when the user invokes "view problem".
  • MessageWidget.getAriaLabel: include marker.message in the label so the actual problem text is conveyed alongside severity and location.

Scope note

The two other bullets in the original report (tab-order of next/previous problem buttons; control names not announced) were confirmed by the area owner as working-as-designed (arrow-key navigation; reproducible only with one screen reader), so they are not addressed here.

Copilot AI requested review from Copilot and removed request for Copilot May 17, 2026 01:35
Copilot AI linked an issue May 17, 2026 that may be closed by this pull request
Co-authored-by: dmitrivMS <9581278+dmitrivMS@users.noreply.github.com>
Copilot AI requested review from Copilot and removed request for Copilot May 17, 2026 01:42
Copilot AI changed the title [WIP] Fix multiple accessibility issues in error message Announce marker contents via aria.alert in goto-error peek widget May 17, 2026
Copilot AI requested a review from dmitrivMS May 17, 2026 01:43
@dmitrivMS
Copy link
Copy Markdown
Contributor

@copilot I think we don't like aria.alert, isn't that what's in the instructions?

Co-authored-by: dmitrivMS <9581278+dmitrivMS@users.noreply.github.com>
Copilot AI requested review from Copilot and removed request for Copilot May 17, 2026 01:58
Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 17, 2026

@copilot I think we don't like aria.alert, isn't that what's in the instructions?

You're right — the accessibility skill says to prefer status() over alert() unless the announcement is time-sensitive. Switched to aria.status(...) in the latest commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Accessibility issues - Error message] Multiple issues

2 participants